package com.ztgf.shopping.models.service.shop;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.ztgf.shopping.models.bo.shop.ShopOnlineQueryBO;
import com.ztgf.shopping.models.dto.shop.ShopOnlineDTO;
import com.ztgf.shopping.models.vo.shop.ShopImResponseVO;
import com.ztgf.shopping.models.vo.shop.ShopOnlineQueryListVO;

import java.util.List;

public interface IShopOnlineService extends IService<ShopOnlineDTO> {

    /**
     * @return : void
     * @Author :chenyu.wang
     * @Description : 根据店铺id新增记录
     * @Date : 11:04 2021.01.12
     * @Param : [shopId]
     **/
    void addOnShopId(Long shopId);

    /**
     * @return : java.util.List<com.ztgf.shopping.models.dto.shop.ShopOnlineDTO>
     * @Author :chenyu.wang
     * @Description : 获取当天未退出登录的列表
     * @Date : 11:16 2021.01.12
     * @Param : [lastNo]
     **/
    List<ShopOnlineDTO> queryDayNotOutList(Long lastNo);

    /**
     * @return : void
     * @Author :chenyu.wang
     * @Description : 修改用户退出登录时间
     * @Date : 14:03 2021.01.12
     * @Param : [shopId]
     **/
    void updateShopOutTime(Long shopId);

    /**
     * @return : com.baomidou.mybatisplus.plugins.Page<com.ztgf.shopping.models.vo.shop.ShopOnlineQueryListVO>
     * @Author :chenyu.wang
     * @Description : 在线时长统计列表
     * @Date : 16:34 2021.01.12
     * @Param : [bo]
     **/
    Page<ShopOnlineQueryListVO> queryPageList(ShopOnlineQueryBO bo);

    ShopImResponseVO getShopImState(Long shopId);
}
